import os
import subprocess
import string

p=subprocess.Popen('dir d:\',stdout=subprocess.PIPE)
a=p.stdout.read().decode('utf8')
print(a)
